how to extract data from queryset in django